package com.oa.hyperion.vo;

import com.oa.hyperion.entity.Controller;
import com.oa.hyperion.entity.ControllerTemplateMerge;
import com.oa.hyperion.entity.Detail;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

/**
 * @author Liu
 * @date 2022年01月17日 17:27
 */
@Setter
@Getter
@ApiModel("详细信息")
public class DetailVo {
    private String title;
    private String style;
    private String icon;
    private String options;
    private Integer sorting;
    private String content;

    public DetailVo(Controller controller, Detail detail, ControllerTemplateMerge controllerTemplateMerge) {
        this.title = controllerTemplateMerge.getTitle();
        this.style = controller.getStyle();
        this.icon = controller.getIcon();
        this.options = controllerTemplateMerge.getOptions();
        this.sorting = controllerTemplateMerge.getSorting();
        this.content = detail.getContent();
    }
}
